# -*- coding: utf-8 -*-
import ix
from liberHook.BaseHook import BaseHook


class Hook(BaseHook):
    def __init__(self, library, directory, ext, start, end):
        BaseHook.__init__(self, library, directory, ext, start, end)

    def execute(self):
        if not self.files:
            self.append_error("No obj files found.")
            return
        ix.import_geometry(self.files[0])
